package com.spring.common.manageException.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.spring.common.manageException.dao.ExceptionDao;
import com.spring.common.manageException.pojo.ExceptionInfo;
import com.spring.common.manageException.service.ExceptionService;



@Service
public class ExceptionServiceImpl implements ExceptionService{
	
	@Autowired
	private ExceptionDao exceptionDao;
	@Override
	public void recordException(ExceptionInfo exp) {
		// TODO Auto-generated method stub
		this.exceptionDao.recordException(exp);
	}
	@Override
	public List<ExceptionInfo> queryExceptionAll() {
		return this.exceptionDao.getExceptionsAll();	
	}
	@Override
	public List<ExceptionInfo> queryExceptionByExp(Map<String, Object> parameter){
		return this.exceptionDao.getExceptionByExp(parameter);
	}
	@Override
	public int queryExceptionCount(Map<String, Object> parameter){
		return this.exceptionDao.getExceptionCount(parameter);
	}
	@Override
	public void updateExceptionStatus(String id){
		this.exceptionDao.updateExceptionStatus(id);
	}

}
